import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
const app = createApp(App)

import 'vant/lib/index.css'
import 'amfe-flexible'

import Header from '@/components/Header.vue'
// import Tabbar from '@/components/Tabbar.vue'
import {
  NoticeBar,
  Button,
  Popup,
  Toast,
  Tab,
  Tabs,
  List,
  Swipe,
  SwipeItem,
  Uploader,
  PasswordInput,
  NumberKeyboard
} from 'vant'
import i18n from './lang'

import vue3SeamlessScroll from 'vue3-seamless-scroll'
//yarn add vue3-seamless-scroll
app.use(vue3SeamlessScroll)
app.component('vue3SeamlessScroll', vue3SeamlessScroll)

app.use(router)
app.component('Header', Header)
app.use(Button)
app.use(Popup)
app.use(Toast)
app.use(Tab)
app.use(Tabs)
app.use(List)
app.use(Swipe)
app.use(SwipeItem)
app.use(NoticeBar)
app.use(Uploader)
app.use(PasswordInput);
app.use(NumberKeyboard);
app.use(i18n)
app.mount('#app')
